#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_process.py
# author:Jackiex
# datetime:2023/5/29 10:33
# software: PyCharm

"""
this is function  description 
"""

from multiprocessing import Process
import time


def run_proc():
    """子进程要执行的代码"""
    while True:
        print("----2----")
        time.sleep(1)


if __name__ == '__main__':
    p = Process(target=run_proc)
    p.start()
    while True:
        print("----1----")
        time.sleep(1)
